package com.foreknow.demo5;

public class TestPerson {
    public static void main(String[] args) {
        Person person = new Person();
        //person.name = "fender"; 因为name属性是私有的，所以无法访问，可以通过set方法给属性设置值
        person.setName("fender");
        String name = person.getName();
        System.out.println(name);
        //person.age = 12;
        person.setAge(12);
        //person.height = 170;
        person.setHeight(170);
        //person.weight = 150;
        person.setWeight(150);
        //        person.info();
    }
}
